package io

import "strconv"

type CardGroup struct {
	Pattern int
	Cards []Card
}

func (c CardGroup) ToString() string {
	var str string = ""
	str += "Pattern :" + strconv.Itoa(c.Pattern) + "\r\n"

	if len(c.Cards) > 0 {
		for _, v := range c.Cards {
			str += v.ToString() + "\r\n"
		}
	}

	return str
}

func NewCardGroup() *CardGroup {
	return new(CardGroup)
}